package com.drondea.testclient.model;

/**
 * 用户接入信息
 * 
 * @author shd
 */
public class User {
    private String id;
    private String ip;
    private int port;
    private String username;
    private String password;
    private int conCount;
    private int submitSpeed;

    public User() {
    }

    public User(String id, String ip, int port, String username, String password, int conCount, int submitSpeed) {
        this.id = id;
        this.ip = ip;
        this.port = port;
        this.username = username;
        this.password = password;
        this.conCount = conCount;
        this.submitSpeed = submitSpeed;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getConCount() {
        return conCount;
    }

    public void setConCount(int conCount) {
        this.conCount = conCount;
    }

    public int getSubmitSpeed() {
        return submitSpeed;
    }

    public void setSubmitSpeed(int submitSpeed) {
        this.submitSpeed = submitSpeed;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", ip='" + ip + '\'' +
                ", port=" + port +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", conCount=" + conCount +
                ", submitSpeed=" + submitSpeed +
                '}';
    }
}
